package com.lwy.controller;


import com.lwy.entity.ResoucesInfo;
import com.lwy.service.impl.ResoucesInfoServiceImpl;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

@RestController
@RequestMapping("res")
public class ResoucesInfoController {

    @Resource
    private ResoucesInfoServiceImpl resoucesInfoService;

    @RequestMapping("list")
    public List<ResoucesInfo> findList(){
        return resoucesInfoService.findList();
    }
}
